<?php 
namespace app\index\model;

use think\Model;

class Ding extends Model
{
	public function getlist($where,$page,$limit)
	{
		return $this->paginate($limit,false,['page'=>$page]);
	}
	public function dels($id)
	{
		return $this->where('id',$id)->delete($id);
	}
	public function addOne($data)
	{
		return $this->insert($data);
	}
}

 ?>